package cn.yili12.common.thread;

public class AgentThreadLocal {
    private AgentThreadLocal() {
    }

    //ConsoleUserVo是存储用户信息的实体类我就不说了
    private static final ThreadLocal<Object> LOCAL = new ThreadLocal<Object>();

    public static void set(Object user) {
        LOCAL.set(user);
    }

    public static Object get() {
        return LOCAL.get();
    }

    public static void remove() {
        LOCAL.remove();
    }
}
